<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: 14258
  Date: 2020/9/2
  Time: 1:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>JSTL标签库练习——fmt</title>
</head>
<body>
<% request.setAttribute("day",new Date());%>
<h1>日期：<fmt:formatDate value="${day}" pattern="yyyy-MM-dd"></fmt:formatDate></h1>
</body>
</html>
